package com.chen.qmzy.dao;

import com.chen.qmzy.entity.DwReceiverEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DwReceiverDao {
    boolean addReceiver(int userId,String receiver,String cellPhone,String province,String city,String county,String address,String areacode,int isDefault );
    int delReceiver(int id);
    boolean upReceiver(int userId,String receiver,String cellPhone,String city,String county,String address,String areacode,int isDefault,int id);
    List<DwReceiverEntity>getReceiverList(int userId);

    DwReceiverEntity selectDefaultByUserId(int userId);
    DwReceiverEntity getReceiverDetailList(int id);

}
